﻿@model CodeCamp.Models.EventMgmt.SponsorEditViewModel
@{
    @* ViewBag.RegistrationUrl set in code - SetSharedViewBagProperties *@
    ViewBag.EventName = "";
    ViewBag.Title = "";
    if ((@Model != null) && (@Model.EventDisplayName != null))
    {
        ViewBag.Title = @Html.Encode(@Model.EventDisplayName + " | Add Sponsor");
        ViewBag.EventName = @Model.EventDisplayName;
    }
    else
    {
        ViewBag.Title = "Code Camp | Add Sponsor";
        ViewBag.EventName = "Code Camp";
    }
}

@section headaddon {
<style>
    #Name
    {
        width: 20em;
    }
    #ImageHeight
    {
        width: 5em;
    }
    #ImageWidth
    {
        width: 5em;
    }
    #ImageUrl
    {
        width: 40em;
    }
    #Url
    {
        width: 40em;
    }
</style>
}

<h2 class="title">@ViewBag.Title</h2>

<h2>Add Sponsor</h2>

@Html.Partial("PartialViews/EditSponsorPartial", @Model.Sponsor)

@Html.ActionLink("Back to list", "SponsorsList")<br />

@section sidebar {
    @Html.Partial("SidebarCommonPartial")
}
